package org.bit.lesson06;

public class Demo_601 {

    public static void main(String[] args) {
//        Singleton instance1 = new Singleton();
//        System.out.println(instance1.getInstance());
//
//        Singleton instance2 = new Singleton();
//        System.out.println(instance2.getInstance());
//
//        Singleton instance3 = new Singleton();
//        System.out.println(instance3.getInstance());

        SingletonHungry instance1 = SingletonHungry.getInstance();
        System.out.println(instance1);

        SingletonHungry instance2 = SingletonHungry.getInstance();
        System.out.println(instance2);

        SingletonHungry instance3 = SingletonHungry.getInstance();
        System.out.println(instance3);


    }

}
